//
//  DealersTableViewCell.m
//  ZiJinLian
//
//  Created by 🐛 on 2017/12/25.
//  Copyright © 2017年 lzy. All rights reserved.
//

#import "DealersTableViewCell.h"

@implementation DealersTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle=0;
    // Initialization code
	self.selectBtn.userInteractionEnabled = NO;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (IBAction)selectBtnClick:(UIButton*)sender {
    sender.selected=!sender.selected;
}
-(void)setModel:(DealerModel *)model
{
	_model = model;
	self.nameLabel.text=model.name;
	self.addressLabel.text=model.area;
	self.numberLabel.text=model.phone;
	self.selectBtn.selected = model.isSelect;
}
@end
